import request from '@/utils/request'

// 登录
export function loginApi(loginFrom) {
    return request({
        url: '/login',
        method: 'post',
        data: loginFrom
    })
}

// 获取用户信息
export function getUserInfoApi() {
    return request({
        url: '/profile',
        method: 'get'
    })
}